package com.aqie.advanced.springApplication.bootstrap;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * Spring 应用上下文引导类
 */
@SpringBootApplication
@Slf4j
public class SpringApplicationContextBootstrap {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = new SpringApplicationBuilder(SpringApplicationContextBootstrap.class).run(args);
        log.info("ConfigurableApplicationContext 类型：{}", context.getClass().getName());
        log.info("Environment 类型：{}", context.getEnvironment().getClass().getName());
       // context.close();
    }
}
